package cn.glenn._02notice.controller;

import cn.glenn._02notice.pojo.dto.UserLoginParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("v1/user/")
@Slf4j
@Tag(name="02-用户管理模块",description="02-用户管理模块")
public class UserController {
    @PostMapping("login")
    @Operation(summary = "登录页面")
    @ApiOperationSupport(order = 1)
    public String login(@RequestBody UserLoginParam param) {
        log.debug("登录信息："+param);
        return "登录成功";
    }

}
